package com.itheima;
//【断言型接口 - Predicate】
import java.util.ArrayList;
import java.util.List;

public class Demo3 {
    public static void main(String[] args) {
        List<String> list = List.of("java","JavaSE","JavaEE","HTML","css","javaScript");
        ArrayList<String> strs = new ArrayList<>();

        strs.addAll(list);
                            //不区分大小写
        strs.removeIf(s -> s.toLowerCase().startsWith("java"));
        strs.forEach(System.out::println);
        strs.forEach(s -> System.out.println(s));
    }
}
